import HttpRequest from '@/api/request';
import ApiConfig from '@/api/api-config';

function getCarCount(option) {
    let url = ApiConfig.getBorrowCarCount;
    return HttpRequest.requestJsonPost(url,option)
}

function logout(option) {
    let url = ApiConfig.logout;
    return HttpRequest.requestJsonPost(url,option)
}


// 取未读消息个数
function unreadCountNotification(params){
    let url = ApiConfig.unreadCountNotification;
    return HttpRequest.requestJsonPost(url, params)
}

// 获取借阅车，未读消息，待办的数量 new
function getMyCount(params){
    let url = ApiConfig.getMyCount;
    return HttpRequest.requestJsonPost(url, params)
}


let Service = {
    getCarCount,
    logout,
    unreadCountNotification,// 取未读消息个数 new
    getMyCount,
};

export default Service;